package com.aceitunaproject.server.player;

import java.io.Serializable;

import com.sun.sgs.app.ClientSession;
import com.sun.sgs.app.ManagedObject;

/**
 * Player manager interface for handling player-related operations
 * 
 * @author Maciej Miechowicz
 */
public interface PlayerManager  extends ManagedObject,Serializable  {

	public static final String PLAYER_PREFIX = "player:";
	
	/**
	 * Returns a player corresponding to the given session. If a player
	 * for the session doesn't exist, it will get created.
	 *  
	 * @param playerSession player session
	 * @return corresponding player
	 */
	public Player getPlayer(ClientSession playerSession);
	
}
